package com.jueban.service;

import com.jueban.Dto.AnnouncementQueryDto;
import com.jueban.Vo.AnnouncementVo;
import com.jueban.Vo.AnnouncementsVo;
import com.jueban.model.Announcement;
import org.springframework.security.access.annotation.Secured;

public interface AnnouncementService
{

    @Secured({"ROLE_admin"})
    AnnouncementVo addAnnouncement(Announcement announcement);

    @Secured({"ROLE_admin"})
    AnnouncementVo deleteAnnouncementById(Integer id);

    @Secured({"ROLE_admin"})
    AnnouncementVo updateAnnouncement(Announcement announcement);

    AnnouncementVo getAnnouncementById(Integer id);

    AnnouncementsVo getAnnouncements(AnnouncementQueryDto announcementDto);

}
